#
# MAINTAINER       yucl,yucl <yucailong1111@126.com>
# DOCKER-VERSION    1.12.6
#
# Dockerizing CentOS7: Dockerfile for building CentOS images
#
FROM       centos:centos7.1.1503
MAINTAINER yucl,yucl <yucailong1111@126.com>

ENV TZ "Asia/Shanghai"
ENV TERM xterm

RUN yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils hostname net-tools rsync man && \
    yum clean all

#java配置
ADD jdk-8u131-linux-x64.tar.gz /usr/local/jdk
ENV JAVA_HOME /usr/local/jdk/jdk1.8.0_131
ENV CLASSPATH $JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
ENV PATH $PATH:$JAVA_HOME/bin

#tomcat配置
ADD apache-tomcat-8.0.44.tar.gz /opt
RUN cd /opt/ && mv apache-tomcat-8.0.44 apache-tomcat
ENV CATALINA_HOME /opt/apache-tomcat
ENV PATH $CATALINA_HOME/bin:$PATH
WORKDIR $CATALINA_HOME

ENV LC_ALL en_US.UTF-8 

#运行成勋
ADD healthcloud-web-2.0.0.war /opt/apache-tomcat/webapps/medical-cloud.war
 
EXPOSE 8080 22
 
CMD ["catalina.sh", "run"]


